package c.h.a.x;

import android.content.ActivityNotFoundException;
import android.content.Intent;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Toast;
import com.liuzh.deviceinfo.appinfo.ManifestActivity;
import com.liuzh.deviceinfo.appinfo.ManifestActivity.a;
import com.liuzh.deviceinfo.provider.ContentFileProvider;
import java.io.File;

/* compiled from: lambda */
public final /* synthetic */ class j implements OnClickListener {
    public final /* synthetic */ a a;
    public final /* synthetic */ String b;

    public /* synthetic */ j(a aVar, String str) {
        this.a = aVar;
        this.b = str;
    }

    public final void onClick(View view) {
        a aVar = this.a;
        String str = this.b;
        ManifestActivity manifestActivity = ManifestActivity.this;
        File file = r.a;
        Intent intent = new Intent();
        intent.setAction("android.intent.action.SEND");
        intent.putExtra("android.intent.extra.STREAM", ContentFileProvider.a(new File(str)));
        intent.setType("text/xml");
        try {
            manifestActivity.startActivity(Intent.createChooser(intent, manifestActivity.getString(2131690356)));
        } catch (ActivityNotFoundException unused) {
            Toast.makeText(manifestActivity, 2131689838, 0).show();
        }
    }
}
